package com.zhongjianjian.dubbo.client;

import com.sun.org.apache.bcel.internal.generic.RETURN;
import com.zhongjianjian.dubbo.TestInterfaceA;

import java.lang.reflect.Proxy;

/**
 * @类名: com.zhongjianjian.dubbo.client
 * @作者: lgt
 * @创建时间: 2020-03-04 22:21
 * @描述:
 **/
public class TestDubboProxy<T> {

    public T getProxyObject(String implClass){
        TestDubboInvocation testDubboInvocation = new TestDubboInvocation(implClass);
        Class<?>[] czlass = {TestInterfaceA.class};
        T t = (T) Proxy.newProxyInstance(TestInterfaceA.class.getClassLoader(), czlass, testDubboInvocation);
        return t;
    }
}
